from yolo import YOLO

# Load a model
model = YOLO("model_data/yolov8-pose.yaml")  # build a new model from scratch
model = YOLO("model_data/yolov8n-pose.pt")  # load a pretrained model (recommended for training)

# Use the model
model.train(data="model_data/coco-pose.yaml", epochs=3)  # train the model
metrics = model.val()  # evaluate model performance on the validation set
results = model("img/000008.jpg")  # predict on an image
path = model.export(format="onnx")  # export the model to ONNX format